package com.ruoyi.hxq_package.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonRawValue;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 套餐管理对象 hxq_package
 * 
 * @author ruoyi
 * @date 2025-02-15
 */
public class HxqPackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐唯一标识符 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String packageName;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 进价 */
    @Excel(name = "进价")
    private BigDecimal basePrice;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal salePrice;

    /** 利润 */
    @Excel(name = "利润")
    private BigDecimal profitPrice;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 使用此套餐所需的积分 */
    @Excel(name = "使用此套餐所需的积分")
    private Long requiredPoints;

    /** 创建者ID, 关联employee表 */
    private Long creatorId;

    /** 最后修改者ID, 关联employee表 */
    private Long modifierId;

    /** 记录最后更新时间 */
    private Date modifyTime;

    /** 套餐生效日期 */
    private Date startDate;

    /** 套餐的结束日期 */
    private Date endDate;

    /** 时效 */
    @Excel(name = "时效")
    @JsonRawValue
    private String timeLimit;

    /** $table.subTable.functionName信息 */
    private List<PackageProduct> packageProductList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setBasePrice(BigDecimal basePrice) 
    {
        this.basePrice = basePrice;
    }

    public BigDecimal getBasePrice() 
    {
        return basePrice;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setProfitPrice(BigDecimal profitPrice) 
    {
        this.profitPrice = profitPrice;
    }

    public BigDecimal getProfitPrice() 
    {
        return profitPrice;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRequiredPoints(Long requiredPoints) 
    {
        this.requiredPoints = requiredPoints;
    }

    public Long getRequiredPoints() 
    {
        return requiredPoints;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setModifierId(Long modifierId) 
    {
        this.modifierId = modifierId;
    }

    public Long getModifierId() 
    {
        return modifierId;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public String getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(String timeLimit) {
        this.timeLimit = timeLimit;
    }

    public List<PackageProduct> getPackageProductList()
    {
        return packageProductList;
    }

    public void setPackageProductList(List<PackageProduct> packageProductList)
    {
        this.packageProductList = packageProductList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("packageName", getPackageName())
            .append("description", getDescription())
            .append("basePrice", getBasePrice())
            .append("salePrice", getSalePrice())
            .append("profitPrice", getProfitPrice())
            .append("status", getStatus())
            .append("requiredPoints", getRequiredPoints())
            .append("creatorId", getCreatorId())
            .append("modifierId", getModifierId())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("timeLimit", getTimeLimit())
            .append("packageProductList", getPackageProductList())
            .toString();
    }
}
